// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue';
import App from './App';
import router from './router';
import store from './store/index.js';

import DateDay from "./components/dateDay";
import InputPrompt from "./components/inputPrompt";
Vue.use(InputPrompt);
Vue.use(DateDay);

Vue.config.productionTip = false;

/* eslint-disable no-new */
window.fastloanVue = new Vue({
  el: '#app',
  router,
  store,
  template: '<App/>',
  components: { App },
  beforeMount:function  () {
    if(this.$route.query.type == "account"){
        this.$store.commit('changeTitle','小通帮你延');
    }else{
        this.$store.commit('changeTitle','小通帮你借');
    }
  }
});



